<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>惠农网 - 订单修改</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/my.css" />
</head>
<body>
<div class="container">
    <%@include file="common/header.jsp"%>
    <div class="row">
        <div class="col-2">
            <%@include file="common/left.jsp"%>
        </div>
        <div class="col-10">
            <div class="jumbotron">
                <h6 class="display-3" style="font-size:2.5rem;">订单修改</h6>
                <%--                <p class="lead"></p>--%>
                <hr class="my-4">
                <%--                <p>请选择您要管理的项目</p>--%>
                <form action="${pageContext.request.contextPath}/order/edit" method="post">
                    <div class="form-group row">
                        <label for="staticId" class="col-sm-2 col-form-label">订单编号：</label>
                        <div class="col-sm-10">
                            <input type="text" readonly class="form-control-plaintext" id="staticId"  name="eoId" value="${ebOrder.eoId}">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label for="staticName" class="col-sm-2 col-form-label">订购人姓名：</label>
                        <div class="col-sm-10">
                            <input type="text" readonly class="form-control-plaintext" id="staticName" name="eoUserName" value="${ebOrder.eoUserName}">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label for="Address" class="col-sm-2 col-form-label">订购人地址：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Address" name="eoUserAddress" value="${ebOrder.eoUserAddress}" >
                        </div>
                    </div>

                    <div class="form-group row">
                        <label for="Cost" class="col-sm-2 col-form-label">总金额：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Cost"  name="eoCost" value="${ebOrder.eoCost}" >
                        </div>
                    </div>

                    <div class="form-group row">
<%--                        <label for="Status" class="col-sm-2 col-form-label">订单状态：</label>--%>
<%--                        <div class="col-sm-10">--%>
                            <div class="col-auto my-1">
                                <label class="mr-sm-2" for="Status">订单状态：</label>
                                <select name="eoStatus" class="custom-select mr-sm-2" id="Status">
                                    <option value="1"  <c:if test="${status==1}"> selected</c:if>>待审核</option>
                                    <option value="2"  <c:if test="${status==2}"> selected</c:if>>审核通过</option>
                                    <option value="3"  <c:if test="${status==3}"> selected</c:if>>配货</option>
                                    <option value="4"  <c:if test="${status==4}"> selected</c:if>>发货</option>
                                    <option value="5"  <c:if test="${status==5}"> selected</c:if>>收货确认</option>
                                </select>
                            </div>
<%--                        </div>--%>
                    </div>

                    <button type="submit" class="btn btn-primary">修改</button>

                </form>
            </div>
        </div>
    </div>
    <div class="row text-center">
        <%@include file="common/footer.jsp"%>
    </div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/popper.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/bootstrap.min.js"></script>
</body>
</html>